<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        $route = Zend_Controller_Front::getInstance()->getRouter()->getCurrentRouteName();
        $this->_route = explode('-', $route);
    }

    public function indexAction()
    {
        $route = Zend_Controller_Front::getInstance()->getRouter()->getCurrentRouteName();
        $route = str_replace('-', '/', $route);
        $this->renderScript('index/index_' . $route . '.phtml');     
    }
    
    public function projectAction()
    {
        switch ($this->_route[1]) {
            case 'ethiopia':
                $result->name = 'ALUMINIUM &amp; SULPHURIC ACID PLANT in Ethiopia';
                $result->subtitle = 'AMASSAS.CO technical inspection. Aluminium sulphate Production Plant in Ethiopia and associated facilities';
                $result->date = 'rok 1999';
                // $result->description[] = '';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul><li>dostawa części zamiennych</li></ul>';
                $result->description[] = '<strong>Ocena techniczna zakładu AMASSAS Co.</strong>:<ul>
                    <li>Ocena techniczna zakładu i urządzeń towarzyszących</li>
                    <li>Analiza i ocena stanu technicznego zakładu</li>
                    <li>Analiza i ocena stanu technicznego każdego urządzenia</li>
                    <li>Analiza i testowanie przebiegu procesu produkcyjnego</li>
                    <li>Modernizacja technologii produkcji siarczanu glinu</li>
                    <li>Ocena techniczna zakładu i urządzeń towarzyszących</li></ul>';

                $result->images[] = 'nord1';
            
                $result->services[] = array('name' => 'Delivery controll', 'route' => 'services-technical-machinerysupply');
                $result->services[] = array('name' => 'Equipment installation and support', 'route' => 'services-technical-assessmentofcondition');
            
                // $result->technology[] = array('name' => 'Criolite', 'route' => 'technology-criolite');
            
                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiainspection');
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiadelivery');
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiadelivery2');
            break;
            
            case 'philipmorris':
                $result->name = 'PHILIP MORRIS POLSKA S.A.';
                $result->subtitle = 'Expansion and modernization of the Central Power System, a plasticizer for the Department of Philip Morris Poland SA';
                $result->date = '2000';
                // $result->description[] = '';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Projekt mechaniczny i technologiczny centralnego systemu zasilania plastyfikatora</li>
                    <li>Dostawa urządzeń do systemu plastyfikatora</li>
                    <li>Nadzorowanie</li>
                    <li>Szkolenie personelu</li>
                    <li>Rozruch</li></ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');
                $result->services[] = array('name' => '', 'route' => 'services-technical-assembly');
                $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply');

                // $result->technology[] = array('name' => 'Criolite', 'route' => 'technology-criolite');

                $result->references[] = 'nord1';
            break;
            
            case 'katowice':
                $result->name = 'TISHMAN International Corporation';
                $result->subtitle = 'Construction of Bank Slaski in Katowice - and the accompanying commercial building';
                $result->date = '2000-2001';
                // $result->description[] = '';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<br />Niezależny konsultant techniczny dla Tishman International Corporation z Nowego Jorku (wg. FIDIC)<ul>
                    <li>Nadzorowanie prac projektowych</li>
                    <li>Nadzorowanie głównego wykonawcy i podwykonawców</li>
                    <li>Nadzorowanie realizacji prac kontraktowych</li>
                    <li>Doradztwo techniczne na różnych etapach realizacji projektu</li>
                    <li>Raportowanie</li>
                    <li>Wizytowanie placu budowy</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-consulting-consultant');

                // $result->technology[] = array('name' => 'Criolite', 'route' => 'technology-criolite');

                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-wawel');
            break;
            
            case 'glimar':
                $result->name = 'Oil Refinery GLIMAR in Gorlice';
                $result->subtitle = 'Construction of hydrocomplex in GLIMAR S.A. oil rafinery';
                $result->date = '2001-2004';
                // $result->description[] = '';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<br />Niezależny konsultant techniczny dla budowy Hydrokompleksu w Rafinerii Nafty GLIMAR SA. W Gorlicach<ul>
                    <li>Nadzorowanie realizacji prac kontraktowych</li>
                    <li>Sprawdzanie projektów</li>
                    <li>Wizytowanie placu budowy</li>
                    <li>Raportowanie</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-consulting-consultant');

                // $result->technology[] = array('name' => 'Criolite', 'route' => 'technology-criolite');

                $result->references[] = 'nord1';
            break;

            case 'ethiopiainspection':
                $result->name = 'ALUMINIUM &amp; SULPHURIC ACID PLANT in Ethiopia';
                $result->subtitle = 'AMASSAS.CO technical inspection. Aluminium sulphate Production Plant in Ethiopia and associated facilities';
                $result->date = '2001';
                // $result->description[] = '';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Dostawa części zamiennych</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply');

                // $result->technology[] = array('name' => 'Criolite', 'route' => 'technology-criolite');

                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiadelivery');
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopia');
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiadelivery2');
            break;
            
            case 'cappo':
                $result->name = 'CAPPO INTERNATIONAL';
                $result->subtitle = 'Design services for oil and gas installations';
                $result->date = '2002';
                // $result->description[] = 'Usługi projektowe dla instalacji naftowych i gazowych';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Organizacja polskiego zespołu projektowego, specjalistów w branży petrochemicznej</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');

                // $result->technology[] = array('name' => 'Criolite', 'route' => 'technology-criolite');

                $result->references[] = 'nord1';
            break;
            
            case 'czestochowa':
                $result->name = 'CZESTOCHOWA CITY';
                $result->subtitle = 'Modernisation and extension of water supply and sewerage system for the city of Czestochowa, in light of the underground water reservoir on an Wierzchowisko';
                $result->date = '2002';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Przygotowanie projektu dla ISPA</li>
                    <li>Ocena techniczna istniejącej sytuacji</li>
                    <li>Studium wykonalności i planowanie</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-consulting-consultant');
                $result->services[] = array('name' => '', 'route' => 'services-consulting-preparation');

                // $result->technology[] = array('name' => 'Criolite', 'route' => 'technology-criolite');

                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-gurisbbs');
            break;
            
            case 'gurisa4':
                $result->name = 'GURIS - Construction and Engineering Company, Turkey';
                $result->subtitle = 'Technical Assistance in the construction of the A-4 highway Sosnica-Kleszczow';
                $result->date = '2001';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Przygotowanie oferty</li>
                    <li>Asysta techniczna</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-consulting-consultant');
                $result->services[] = array('name' => '', 'route' => 'services-consulting-preparation');

                // $result->technology[] = array('name' => 'Criolite', 'route' => 'technology-criolite');

                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-gurisbbs');
                $result->projects[] = array('name' => '', 'route' => 'projects-gurisfasttram');
            break;
            
            case 'ethiopiadelivery':
                $result->name = 'ALUMINIUM & SULPHURIC ACID PLANT in Ethiopia';
                $result->subtitle = 'Delivery of spare parts and equipment for AMASSAS.CO. alumina plant in Ethiopia';
                $result->date = '2001';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Dostawa części zamiennych</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply');

                // $result->technology[] = array('name' => 'Criolite', 'route' => 'technology-criolite');

                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiainspection');
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopia');
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiadelivery2');
            break;
            
            case 'gurisbbs':
                $result->name = 'GURIS - Construction and Engineering Company, Turkey';
                $result->subtitle = 'Technical Assistance in the construction of highway Bielsko-Biala - Skoczow';
                $result->date = '2001';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Przygotowanie oferty</li>
                    <li>Pomoc techniczna</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-consulting-consultant');
                $result->services[] = array('name' => '', 'route' => 'services-consulting-preparation');

                // $result->technology[] = array('name' => 'Criolite', 'route' => 'technology-criolite');

                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-gurisa4');
                $result->projects[] = array('name' => '', 'route' => 'projects-gurisfasttram');
            break;
            
            case 'wawel':
                $result->name = 'TISHMAN International Corporation';
                $result->subtitle = 'Construction Site Engineer at the Sheraton Hotel in Krakow Street Powisle';
                $result->date = '2002 (kontrakt trzyletni)';
                $result->description[] = 'Podwykonawca dla Tishman International Corporation z Nowego Jorku jako inżynier konsultant (wg FIDIC).';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Nadzorowanie prac wykonywanych przez generalnego wykonawcę i podwykonawców</li>
                    <li>Koordynowanie prac pomiędzy właścicielami a innymi konsultantami z USA, Belgii, Niemiec, W. Brytanii i Polski</li>
                    <li>Nadzorowanie i kontrolowanie prac związanych z realizacją inwestycji</li>
                    <li>Raportowanie</li>
                    <li>Wizytowanie placu budowy</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-consulting-contractengineer');

                // $result->technology[] = array('name' => 'Criolite', 'route' => 'technology-criolite');

                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-katowice');
            break;
            
            case 'ethiopiadelivery2':
                $result->name = 'ALUMINIUM & SULPHURIC ACID PLANT in Ethiopia';
                $result->subtitle = 'Second delivery of spare parts and equipment for AMASSAS.CO. alumina plant in Ethiopia';
                $result->date = '2002';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Dostawa części zamiennych</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply');

                // $result->technology[] = array('name' => 'Criolite', 'route' => 'technology-criolite');

                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiainspection');
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopia');
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiadelivery');
            break;
            
            case 'gurisfasttram':
                $result->name = 'GURIS - Construction and Engineering Company, Turkey';
                $result->subtitle = 'Building "Fast tram" in Cracow';
                $result->date = '2003';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Przygotowanie oferty na budowę "Szybkiego tramwaju"</li>
                    <li>Ocena ofert technicznych i handlowych</li>
                    <li>Doradztwo w negocjacjach</li>
                    <li>Asysta techniczna</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-consulting-consultant');
                $result->services[] = array('name' => '', 'route' => 'services-consulting-preparation');

                // $result->technology[] = array('name' => 'Criolite', 'route' => 'technology-criolite');

                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-gurisa4');
                $result->projects[] = array('name' => '', 'route' => 'projects-gurisbbs');
            break;
            
            case 'ncic':
                $result->name = 'NCIC El Nasr Company for Intermediate Chemicals';
                $result->subtitle = 'The construction of aluminum sulfate production plant in Cairo, Egypt';
                $result->date = '2004-2005';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Przygotowanie projektów bazowych i szczegółowych zakładu</li>
                    <li>Dostawa urządzeń</li>
                    <li>Nadzory na budowie przy montażu urządzeń</li>
                    <li>Nadzory przy rozruchu zakładu</li>
                    <li>Asysta techniczna</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-consulting-deliveries');
                $result->services[] = array('name' => '', 'route' => 'services-technical-assembly');
                $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');
                $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply');

                $result->technology[] = array('name' => '', 'route' => 'technology-aluminiumsulfate');

                $result->references[] = 'nord1';
            break;

            case 'nordural':
                $result->name = 'NORDURAL ehf.';
                $result->subtitle = 'The construction of aluminum sulfate production plant in Cairo, Egypt';
                $result->date = '2006-2007';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Przygotowanie projektu</li>
                    <li>Dostawa urządzeń i części</li>
                    <li>Nadzory na budowie przy montażu urządzeń</li>
                    <li>Montaż i nadzory na budowie przy montażu i rozruchu</li>
                    <li>Asysta techniczna</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-consulting-deliveries');
                $result->services[] = array('name' => '', 'route' => 'services-technical-assembly');
                $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');
                $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply');

                // $result->technology[] = array('name' => '', 'route' => 'technology-aluminiumsulfate');

                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraldesign');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraltransport');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralmaintenance');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralproject');
            break;
            
            case 'sopot':
                $result->name = 'NDI SA.';
                $result->subtitle = 'The project of "center of Sopot" - construction of the Sheraton hotel, spa, parking and office building, shopping and service center with cinemas, apartment building and a tunnel in Sopot.';
                $result->date = '2007-2009';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Niezależny doradca techniczny dla PKO BANK POLSKI SA</li>
                    <li>Nadzorowanie realizacji kontraktu</li>
                    <li>Sprawdzanie projektowania</li>
                    <li>Wizytowanie placu budowy</li>
                    <li>Raportowanie</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-consulting-consultant');

                // $result->technology[] = array('name' => '', 'route' => 'technology-aluminiumsulfate');

                $result->references[] = 'nord1';
            break;
            
            case 'orlen':
                $result->name = 'ORLEN ASFALT Sp. z o.o.';
                $result->subtitle = 'Investor replacement for upgrading existing asphalt stations and construction of additional new station along with the reconstruction of pipelines in ORLEN Sp. o.o. Plock';
                $result->date = '2006-2007';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Inwestor zastępczy</li>
                    </ul>';

                $result->images[] = 'nord1';

                $result->services[] = array('name' => '', 'route' => 'services-consulting-contractengineer');

                // $result->technology[] = array('name' => '', 'route' => 'technology-aluminiumsulfate');

                $result->references[] = 'nord1';
            break;
            
            case 'kubala':
                $result->name = 'HRV Engineering';
                $result->subtitle = 'Aluminum smelter modernization Kubala, Sweden';
                $result->date = '2007';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Przygotowanie projektu modernizacji zakładu</li>
                    <li>Ocena stanu technicznego zakładu</li>
                    </ul>';

                $result->images[] = 'nord1';
                $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');
                $result->references[] = 'nord1';
            break;
            
            case 'norduraltransport':
                $result->name = 'NORDURAL ehf.';
                $result->subtitle = 'Design and execution of bulk materials transport system for aluminum smelter Nordural Aluminium Plant in Grundartanga, Iceland';
                $result->date = '2006';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Przygotowanie projektu</li>
                    <li>Dostawa urządzeń; (przenośniki zgrzebłowe, przesiewacze, filtry oraz system sterowania)</li>
                    <li>Montaż i rozruch</li>
                    </ul>';

                $result->images[] = 'nord1';
                $result->services[] = array('name' => '', 'route' => 'services-consulting-deliveries');
                $result->services[] = array('name' => '', 'route' => 'services-technical-keepingrun');
                $result->services[] = array('name' => '', 'route' => 'services-technical-assembly');
                $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');
                $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply');
                $result->technology[] = array('name' => '', 'route' => 'technology-criolite');
                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-nordural');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraldesign');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralmaintenance');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralproject');
            break;
                        
            case 'norduraldesign':
                $result->name = 'NORDURAL ehf.';
                $result->subtitle = 'Design and execution system for handling material from the conveyor bath cooling for aluminum smelter Nordural Aluminium Plant in Grundartanga, Iceland';
                $result->date = '2006-2007';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Przygotowanie projektu</li>
                    <li>Dostawa urządzeń (przesiewacz wibracyjny, przenośnik kubełkowy, silos magazynowy, system sterowania)</li>
                    <li>Montaż i rozruch</li>
                    <li>Dostawy dodatkowych urządzeń</li>
                    </ul>';

                $result->images[] = 'nord1';
                $result->services[] = array('name' => '', 'route' => 'services-consulting-deliveries');
                $result->services[] = array('name' => '', 'route' => 'services-technical-keepingrun');
                $result->services[] = array('name' => '', 'route' => 'services-technical-assembly');
                $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');
                $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply');
                $result->technology[] = array('name' => '', 'route' => 'technology-criolite');
                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-nordural');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraltransport');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralmaintenance');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralproject');
            break;
                                    
            case 'norduralmaintenance':
                $result->name = 'NORDURAL ehf.';
                $result->subtitle = 'Maintenance services for aluminum smelter Nordural Aluminium Plant in Grundartanga, Iceland';
                $result->date = '2006-2007';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Usługi w branży mechanicznej</li>
                    <li>Naprawa różnych urządzeń</li>
                    </ul>';

                $result->images[] = 'nord1';
                $result->services[] = array('name' => '', 'route' => 'services-technical-support');
                $result->services[] = array('name' => '', 'route' => 'services-technical-keepingrun');
                
                $result->references[] = 'nord1';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-nordural');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraltransport');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraldesign');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralproject');
            break;
                                                
            case 'norduralproject':
                $result->name = 'NORDURAL ehf.';
                $result->subtitle = 'The design and implementation of three systems of pneumatic transport for aluminum smelter Nordural Aluminium Plant in Grundartanga, Iceland';
                $result->date = '2007';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Przygotowanie projektu</li>
                    <li>Dostawa urządzeń</li>
                    <li>Wykonanie systemów  transport pneumatycznego dla:<ul>
                    <li>Transport pyłów kriolitu z przenośnika kubełkowego do silosu magazynowego</li>
                    <li>Transport pyłów kriolitu z filtra w pomieszczeniu czyszczącym do silosu magazynowego</li>
                    <li>Transport pyłów kriolitu z filtra przenośnika chłodzącego do silosu magazynowego</li>
                    </ul></li>
                    </ul>';

                $result->images[] = 'nord1';
                $result->services[] = array('name' => '', 'route' => 'services-consulting-deliveries');
                $result->services[] = array('name' => '', 'route' => 'services-technical-keepingrun');
                $result->services[] = array('name' => '', 'route' => 'services-technical-assembly');
                $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');
                $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply');
                $result->technology[] = array('name' => '', 'route' => 'technology-criolite');
                $result->technology[] = array('name' => '', 'route' => 'technology-pneumatictransportation');
                
                $result->references[] = 'nord1';
                $result->projects[] = array('name' => '', 'route' => 'projects-nordural');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraltransport');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraldesign');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralmaintenance');
            break;  
                                                          
            case 'norduralpneumatic':
                $result->name = 'NORDURAL ehf.';
                $result->subtitle = 'Design by pneumatic vacuum cleaning system and adoption of sweeping trash and cars for aluminum smelters Nordural Aluminium Plant in Grundartanga, Iceland';
                $result->date = '2007-2008';
                $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                    <li>Przygotowanie projektu</li>
                    <li>Dostawa urządzeń (pomp próżniowych, cyclonów, filtrów, systemu transport pyłów, przenośników zgrzebłowych i taśmowych, przesiewaczy, separatora magnetycznego i niezależnego systemu sterowania</li>
                    <li>Montaż i rozruch</li>
                    </ul>';

                $result->images[] = 'nord1';
                $result->services[] = array('name' => '', 'route' => 'services-consulting-deliveries');
                $result->services[] = array('name' => '', 'route' => 'services-technical-keepingrun');
                $result->services[] = array('name' => '', 'route' => 'services-technical-assembly');
                $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');
                $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply');
                $result->technology[] = array('name' => '', 'route' => 'technology-pneumatictransportation');
                
                $result->references[] = 'nord1';
                $result->projects[] = array('name' => '', 'route' => 'projects-nordural');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraltransport');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraldesign');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralmaintenance');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralproject');
            break;
                                                                      
             case 'claudius':
                 $result->name = 'Claudius Peters Projects GmbH';
                 $result->subtitle = 'Design, manufacture and supply of electrical cables and electrical installations for the production of gypsum in the Department of Zaragoza, Spain';
                 $result->date = '2009';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Przygotowanie projektu</li>
                     <li>Dostawa kabli elektrycznych</li>
                     <li>Instalacja kabli elektrycznych</li>
                     </ul>';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');
                 $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply');
                 $result->services[] = array('name' => '', 'route' => 'services-technical-assembly');
                 
                 $result->references[] = 'nord1';
             break;
                                                                     
             case 'ethiopiaparts':
                 $result->name = 'ALUMINIUM & SULPHURIC ACID PLANT in Ethiopia';
                 $result->subtitle = 'Delivery of spare parts and equipment for AMASSAS.CO. alumina plant in Ethiopia';
                 $result->date = '2007 - ...';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Dostawa urządzeń I części zamiennych potrzebnych do sparwanej i ekonomicznej pracy instalacji kwasu siarkowego</li>
                     </ul>';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-deliveries');
                 $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply');
                 
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'ncicenlargement':
                 $result->name = 'NCIC El Nasr Company for Intermediate Chemicals';
                 $result->subtitle = 'The contract for the enlargement of the plant for two additional reactors at the new facility NCIC alumina production facility in Cairo, Egypt';
                 $result->date = '2009';
                 $result->description[] = 'Wartość projektu modernizacji zakładu  – 85.000 EUR';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Dostawa urządzeń i materiałów, włącznie z wszystkimi kluczowymi urządzeniami procesowymi, system sterowania DCS, pomp, zaworów etc.</li
                     <li>Asysta techniczna przy montażu i rozruchu </li>
                     <li>Szkolenie personelu Klienta</li>
                     </ul>';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-deliveries');
                 $result->services[] = array('name' => '', 'route' => 'services-technical-keepingrun');
                 $result->services[] = array('name' => '', 'route' => 'services-technical-assembly');
                 $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');
                 $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply');
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'ncicsupply':
                 $result->name = 'NCIC El Nasr Company for Intermediate Chemicals';
                 $result->subtitle = 'The contract to supply a set of conveyor belts to the new plant NCIC alumina production facility in Cairo, Egypt';
                 $result->date = '2009';
                 $result->description[] = 'Wartość projektu  (modernizacji zakładu) – 292.300 EUR';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Dostawa urządzeń (kompletu przenośników taśmowych) i systemu sterowania</li>
                     <li>Asysta techniczna przy montażu i rozruchu </li>
                     <li>Szkolenie personelu Klienta</li>
                     </ul>';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-deliveries');
                 $result->services[] = array('name' => '', 'route' => 'services-technical-keepingrun');
                 $result->services[] = array('name' => '', 'route' => 'services-technical-assembly');
                 $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'ncicpomps':
                 $result->name = 'NCIC El Nasr Company for Intermediate Chemicals';
                 $result->subtitle = 'Supply of pumps for the new plant NCIC alumina production facility in Cairo, Egypt';
                 $result->date = '2009';
                 $result->description[] = 'Wartość projektu – 254.800 EUR';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Dostawa urządzeń (5 pomp),  materiałów i systemu sterowania</li>
                     <li>Asysta techniczna przy montażu i rozruchu</li>
                     <li>Szkolenie personelu Klienta</li>
                     </ul>';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-deliveries');
                 $result->services[] = array('name' => '', 'route' => 'services-technical-keepingrun');
                 $result->services[] = array('name' => '', 'route' => 'services-technical-assembly');
                 $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'ncicdcs':
                 $result->name = 'NCIC El Nasr Company for Intermediate Chemicals';
                 $result->subtitle = 'Supply of equipment automation and control system for New Factory DCS NCIC - aluminum sulphate production plant in Cairo, Egypt';
                 $result->date = '2009';
                 $result->description[] = 'Wartość projektu, modernizacji zakładu – 378.250 EUR';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Dostawa urządzeń automatyki i systemu sterowania DCS</li>
                     <li>Asysta techniczna przy montażu urządzeń i rozruchu</li>
                     <li>Szkolenie personelu Klienta</li>
                     </ul>';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-deliveries');
                 $result->services[] = array('name' => '', 'route' => 'services-technical-keepingrun');
                 $result->services[] = array('name' => '', 'route' => 'services-technical-assembly');
                 $result->services[] = array('name' => '', 'route' => 'services-designing-industrial');
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'ncicline':
                 $result->name = 'NCIC El Nasr Company for Intermediate Chemicals';
                 $result->subtitle = 'Supply of Conveyor belt for the Department of aluminum sulfate and Production Division NCIC aluminum sulfate in Cairo, Egypt';
                 $result->date = '2010';
                 $result->description[] = 'Wartość projektu – 89.480 EUR';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Dostawa przenośników</li>
                     <li>Asysta techniczna przy montażu urządzeń i rozruchu</li>
                     <li>Szkolenie personelu Klienta</li>
                     </ul>';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-deliveries'); // 7
                 $result->services[] = array('name' => '', 'route' => 'services-technical-keepingrun'); // 9
                 $result->services[] = array('name' => '', 'route' => 'services-technical-assembly'); // 10
                 $result->services[] = array('name' => '', 'route' => 'services-designing-industrial'); // 11
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'nordural2010':
                 $result->name = 'NORDURAL ehf.';
                 $result->subtitle = 'Delivery of spare parts for the aluminum smelter Nordural Aluminium Plant in Grundartanga, Iceland';
                 $result->date = '2010';
                 $result->description[] = 'Wizyta serwisowa specjalistów Dabster.';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Dostawa urządzeń (łańcucha do podajnika kubełkowego, kubełków, pierścieni, worków filtracyjnych, filtrów, kół napędowych i napinających)</li>
                     <li>Wizyta 3 specialistów z DABSTER wrzesień 2010</li>
                     </ul>';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-deliveries'); // 7
                 $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply'); // 14
                 $result->services[] = array('name' => '', 'route' => 'services-technical-assembly'); // 10
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'wonji':
                 $result->name = 'WONJI/SHOA SUGAR FACTORY';
                 $result->subtitle = 'Delivery of equipment and spare parts for sugar Wonji / Shoa Sugar Factory in Ethiopia';
                 $result->date = '2010';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Dostawy różnego typu części zamiennych</li>
                     </ul>';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply'); // 14
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'veolia':
                 $result->name = 'VEOLIA WATER SYSTEMS Sp. z o.o.';
                 $result->subtitle = 'Contract for sludge solidification facility at Station Thermal Sludge Treatment (STUO) at Plaszow II Wastewater Treatment Plant in Krakow';
                 $result->date = '2009 - 2010';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Prace projektowe</li>
                     <li>Dostawy</li>
                     <li>Roboty montażowe i budowlane</li>
                     </ul>';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply'); // 14
                 $result->services[] = array('name' => '', 'route' => 'services-technical-assembly'); // 10
                 $result->services[] = array('name' => '', 'route' => 'services-designing-industrial'); // 11
                 
                 $result->technology[] = array('name' => '', 'route' => 'technology-sludgesolidification');
                 
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'novorosyjsk':
                 $result->name = 'NOVOROSYJSK PORT AUTHORITIES';
                 $result->subtitle = 'Design of steel ballast water tank, volume of 30,000 cu.m.';
                 $result->date = '1994';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Projektowanie i budowa zbiornika wg. norm API 650</li>
                     <li>Projektowanie fundamentu dla zbiornika</li>
                     </ul>';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-designing-industrial'); // 11
                 $result->services[] = array('name' => '', 'route' => 'services-designing-construction'); // 10
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'polservice':
                 $result->name = 'POLSERVICE Przedsiębiorstwo Handlu Zagranicznego';
                 $result->subtitle = 'A comprehensive study of gas development in the Republic of Syria';
                 $result->date = '1992';
                 $result->description[] = 'Klient: Syrian Petroleum Company';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Wstępne analizy</li>
                     <li>Przygotowanie ofert technicznych i ekonomicznych dla oferty międzynarodowej</li>
                     </ul>';
                $result->description[] = 'Dziedziny: geologia, energetyka, rafinerie gazowe';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-consultant'); // 2
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'budimex':
                 $result->name = 'Konsorcjum BUDIMEX-NAFTOBUDOWA';
                 $result->subtitle = 'Development of oil fields in Timan-Pechora region in Siberia';
                 $result->date = '1992';
                 $result->description[] = 'Klient: TEXACO Petroleum Development Company';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Przygotowanie pełnych ofert technicznych i ekonomicznych dla TEXACO</li>
                     <li>Wizytowanie pól naftowych</li>
                     <li>Opracowanie planu zagospodarowania pól naftowych</li>
                     <li>Oszacowanie kosztów realizacji przedsięwzięcia</li>
                     <li>Opracowanie planu realizacji inwestycji (harmonogramy rzeczowe i finansowe) oraz planu wykonawczego</li>
                     <li>Opracowanie systemów jakości QA/QC</li>
                     </ul>';
                $result->description[] = 'Dziedziny: budowlana, technologiczna, mechaniczna, automatyka, elektryczna, planowanie i zagadnienia finansowe';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-consultant'); // 2
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'tss':
                 $result->name = 'TSS – Sp. z o.o.';
                 $result->subtitle = 'Waste Pyrolysis Plant Polish-American Joint Venture';
                 $result->date = '1993';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Analiza rynku</li>
                     <li>Organizacja Joint-Venture</li>
                     <li>Negocjacje z władzami miasta</li>
                     </ul>';
                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-consultant'); // 2
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'elektrim':
                 $result->name = 'ELEKTRIM SA.';
                 $result->subtitle = 'Electrofilters Production control for LURGI GmbH';
                 $result->date = '1993 - 1994';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Inspekcja produkcji elektrofiltrów</li>
                     <li>Zabezpieczenie i kontrola jakości, kontrola postępu robót</li>
                     </ul>';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-consultant'); // 2
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-controll'); // 6
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'ecocoal':
                 $result->name = 'ECOCOAL Ltd.';
                 $result->subtitle = 'Construction of Coal Enrichment Plant, Sosnowiec, Poland';
                 $result->date = '1996';
                 $result->description[] = 'Inwestor: ECOCOAL Ltd. Polsko-amerykańskie J-V.';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Opracowanie analizy marketingowej</li>
                     <li>Weryfikacja wstępnej dokumentacji projektowej zgodnie z polskimi przepisami</li>
                     <li>Opracowanie kompletnej koncepcji programowo-przestrzennej oraz uzyskanie decyzji WZiZT dla planowanego zakładu</li>
                     <li>Monitorowanie prac projektowych</li>
                     <li>Bieżące raportowanie postępu prac przy przygotowaniu inwestycji dla instytucji finansujących w USA</li>
                     </ul>';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-consultant'); // 2
                 $result->services[] = array('name' => '', 'route' => 'services-designing-construction'); // 12
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'elektrimfilters':
                 $result->name = 'ELEKTRIM SA.';
                 $result->subtitle = 'Electrofilters for LURGI GmbH';
                 $result->date = '1996';
                 $result->description[] = 'Klient: ABB Finland';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Wstępne analizy</li>
                     <li>Przygotowania ofert technicznych i ekonomicznych dla oferty międzynarodowe</li>
                     </ul>';
                $result->description[] = 'Dziedziny: geologia, energetyka, rafinerie gazowe';

                 $result->images[] = 'nord1';
                 $result->services[] = array('name' => '', 'route' => 'services-consulting-consultant'); // 2
                 $result->services[] = array('name' => '', 'route' => 'services-designing-construction'); // 12
                 $result->references[] = 'nord1';
             break;
                                                                                  
             case 'mostostal':
                 $result->name = 'MOSTOSTAL ZABRZE SA.';
                 $result->subtitle = 'Modernization of boiler for CHP in Komorzany, Czech Republic';
                 $result->date = '1996';
                 $result->description[] = 'Dostawa czterech rozdzielaczy popiołów dla pieców o złożu fluidalnym';
                 $result->description[] = '<strong>Przedmiot i zakres usług</strong>:<ul>
                     <li>Projektowanie I modelowanie</li>
                     <li>Produkcja</li>
                     <li>Wyłożenie trudnościeralnym materiałem ceramicznym</li>
                     <li>Dostawa</li>
                     </ul>';

                 $result->images[] = 'nord1';
                  $result->services[] = array('name' => '', 'route' => 'services-technical-machinerysupply'); // 14
                  $result->services[] = array('name' => '', 'route' => 'services-technical-assembly'); // 10
                  $result->services[] = array('name' => '', 'route' => 'services-designing-industrial'); // 11
                  $result->technology[] = array('name' => '', 'route' => 'technology-pneumatictransportation'); // t2
                  
                 $result->references[] = 'nord1';
             break;

        }
        
        $this->view->project = $result;
    }
    
    public function serviceAction()
    {

        switch ($this->_route[1]) {
            default:
            case 'consulting':
                $result->type = 'Consultation services';
                break;
                
            case 'designing':
                $result->type = 'Designing services';
                break;
                
            case 'technical':
                $result->type = 'Technical services';
                break;
        }

        $result->images[] = 'serv1';
        $result->images[] = 'serv2';
        $result->images[] = 'serv3';

        switch ($this->_route[2]) {
             // 1
            case 'contractengineer':
                $result->name = 'Contract Engineer';
                $result->projects[] = array('name' => '', 'route' => 'projects-orlen');                
                $result->projects[] = array('name' => '', 'route' => 'projects-wawel');  
                break;

            // 2    
            case 'consultant':
                $result->name = 'Consultant';

                $result->projects[] = array('name' => '', 'route' => 'projects-elektrimfilters');
                $result->projects[] = array('name' => '', 'route' => 'projects-ecocoal');
                $result->projects[] = array('name' => '', 'route' => 'projects-elektrim');
                $result->projects[] = array('name' => '', 'route' => 'projects-tss');
                $result->projects[] = array('name' => '', 'route' => 'projects-budimex');
                $result->projects[] = array('name' => '', 'route' => 'projects-polservice');
                $result->projects[] = array('name' => '', 'route' => 'projects-sopot');
                $result->projects[] = array('name' => '', 'route' => 'projects-gurisfasttram');                  
                $result->projects[] = array('name' => '', 'route' => 'projects-gurisbbs');                  
                $result->projects[] = array('name' => '', 'route' => 'projects-katowice');                   
                $result->projects[] = array('name' => '', 'route' => 'projects-gurisa4');                
                $result->projects[] = array('name' => '', 'route' => 'projects-czestochowa');
                $result->projects[] = array('name' => '', 'route' => 'projects-glimar');
                break;

            // 3, added on 2011-08-30    
            case 'independentconsultant':
                $result->name = 'Independent Technical Consultant';

                $result->projects[] = array('name' => '', 'route' => 'projects-sopot'); //
                $result->projects[] = array('name' => '', 'route' => 'projects-katowice');                   
                $result->projects[] = array('name' => '', 'route' => 'projects-glimar'); //
                break;    
            
            // 4    
            case 'inspector':
                $result->name = 'Inspector';
                break;
                
            // 5    
            case 'preparation':
                $result->name = 'Preparation';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-gurisfasttram');                   
                $result->projects[] = array('name' => '', 'route' => 'projects-gurisbbs');                    
                $result->projects[] = array('name' => '', 'route' => 'projects-czestochowa');                
                $result->projects[] = array('name' => '', 'route' => 'projects-gurisa4');
                break;
                
            // 6
            case 'controll':
                $result->name = 'Controll';

                $result->projects[] = array('name' => '', 'route' => 'projects-elektrimfilters');
                $result->projects[] = array('name' => '', 'route' => 'projects-elektrim');
                break;
                
            // 7
            case 'deliveries':
                $result->name = 'Deliveries';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-nordural2010');                
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicline');                
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicdcs');                  
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicpomps');                 
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicsupply');                
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicenlargement');                
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiaparts');                
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralpneumatic');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralproject');                
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraldesign');                
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraltransport');                
                $result->projects[] = array('name' => '', 'route' => 'projects-nordural');
                $result->projects[] = array('name' => '', 'route' => 'projects-ncic');
                break;

            // 8
            case 'support':
                $result->name = 'Technical support';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralmaintenance');
                break;

            // 9
            case 'keepingrun':
                $result->name = 'Keeping lines running';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicenlargement');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralpneumatic');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralproject');                
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralmaintenance');                 
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraldesign');                
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraltransport');
                break;

            // 10    
            case 'assembly':
                $result->name = 'Assembling production lines';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-mostostal');                
                $result->projects[] = array('name' => '', 'route' => 'projects-veolia');                
                $result->projects[] = array('name' => '', 'route' => 'projects-nordural2010');                 
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicline');                 
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicdcs');                
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicpomps');                 
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicsupply');                
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicenlargement');
                $result->projects[] = array('name' => '', 'route' => 'projects-claudius');                
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralpneumatic');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralproject');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraldesign');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraltransport');
                $result->projects[] = array('name' => '', 'route' => 'projects-nordural');
                $result->projects[] = array('name' => '', 'route' => 'projects-ncic');
                $result->projects[] = array('name' => '', 'route' => 'projects-philipmorris');
                break;

            // 11
            case 'industrial':
                $result->name = 'Industrial design';

                $result->projects[] = array('name' => '', 'route' => 'projects-mostostal');
                $result->projects[] = array('name' => '', 'route' => 'projects-novorosyjsk');
                $result->projects[] = array('name' => '', 'route' => 'projects-veolia');
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicline');                 
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicdcs');                  
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicpomps');                
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicsupply');                
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicenlargement');                  
                $result->projects[] = array('name' => '', 'route' => 'projects-claudius');                
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralpneumatic');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralproject');                 
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraldesign');                 
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraltransport');                
                $result->projects[] = array('name' => '', 'route' => 'projects-kubala');
                $result->projects[] = array('name' => '', 'route' => 'projects-nordural');
                $result->projects[] = array('name' => '', 'route' => 'projects-ncic');
                $result->projects[] = array('name' => '', 'route' => 'projects-philipmorris');
                $result->projects[] = array('name' => '', 'route' => 'projects-cappo');
                break;

            // 12
            case 'technical':
                $result->name = 'Technical design';

                $result->projects[] = array('name' => '', 'route' => 'projects-ecocoal');
                $result->projects[] = array('name' => '', 'route' => 'projects-novorosyjsk');
                break;

            // 13    
            case 'construction':
                $result->name = 'Construcion design';
                break;    
                
            // 14
            case 'machinerysupply':
                $result->name = 'machinerysupply';

                $result->projects[] = array('name' => '', 'route' => 'projects-mostostal');
                $result->projects[] = array('name' => '', 'route' => 'projects-veolia');
                $result->projects[] = array('name' => '', 'route' => 'projects-wonji');
                $result->projects[] = array('name' => '', 'route' => 'projects-nordural2010');
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicline');
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicdcs');
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicpomps');
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicsupply');
                $result->projects[] = array('name' => '', 'route' => 'projects-ncicenlargement');
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiaparts');
                $result->projects[] = array('name' => '', 'route' => 'projects-claudius');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralpneumatic');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralproject');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraldesign');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraltransport');
                $result->projects[] = array('name' => '', 'route' => 'projects-nordural');
                $result->projects[] = array('name' => '', 'route' => 'projects-ncic');
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiadelivery2');
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiadelivery');
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopia');
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopiainspection');
                $result->projects[] = array('name' => '', 'route' => 'projects-philipmorris');
                break;
                
            // 15
            case 'assessmentofcondition':
                $result->name = 'Analysis and assessment of technical condition of the installation';
                
                $result->projects[] = array('name' => '', 'route' => 'projects-ethiopia');
                break;
        }
        
        // if (isset($result->projects)) {
        //     $result->projects = array_slice($result->projects, 0, 6);
        // }
        
        $this->view->service = $result;
    }
    
    public function technologyAction()
    {
        $result->name = 'Criolite transportation';
        $result->description[] = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam molestie metus erat, eu varius nulla. Cras a suscipit tellus. Mauris mollis laoreet tempor. Sed molestie viverra dui, vitae euismod dui vehicula ac. Sed vel arcu vitae ipsum imperdiet sodales. Vivamus tempor massa quis nisi mollis laoreet.';
        $result->description[] = 'Nullam vel orci enim, vitae accumsan dui. Phasellus pharetra eleifend pellentesque. Mauris lobortis elementum libero at sollicitudin. Mauris sit amet augue mi. Sed faucibus neque id tellus porttitor et euismod felis rhoncus. Sed mollis molestie quam egestas congue.';

        $result->images[] = 'nord1';
        $result->images[] = 'nord2';
        $result->images[] = 'nord3';

        // $result->references[] = '/s/r/nord1';
        // $result->references[] = '/s/r/nord2';
        // $result->references[] = '/s/r/nord3';
        // $result->references[] = '/s/r/nord4';

        switch ($this->_route[1]) {
            // t1
            case 'criolite';
                $result->name = 'Criolite production';

                $result->projects[] = array('name' => '', 'route' => 'projects-norduralproject');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraldesign');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduraltransport');
                break;

            // t2    
            case 'pneumatictransportation';
                $result->name = 'Pneumatic slag transportation';

                $result->projects[] = array('name' => '', 'route' => 'projects-mostostal');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralpneumatic');
                $result->projects[] = array('name' => '', 'route' => 'projects-norduralproject'); 
                break;

            // t3
            case 'sludgesolidification';
                $result->name = 'Sludge solidification';

                $result->projects[] = array('name' => '', 'route' => 'projects-veolia');
                break;

            // t4
            case 'aluminiumsulfate';
                $result->name = 'Aluminium sulfate';

                $result->projects[] = array('name' => '', 'route' => 'projects-ncic');
                break;
        }

        $this->view->technology = $result;
    }

    public function aboutAction()
    {
        // information about company    
    }
    
    /**
     * Sending mails and displaying contact form
     */
    public function contactAction()
    {
        $form = new Zend_Form();
        $form->setMethod('post');
        $name = new Zend_Form_Element_Text('name', array('required' => true, 'label' => 'Your name *', 'class' => 'text'));
        $name->addValidator('NotEmpty', true);
        $institution = new Zend_Form_Element_Text('institution', array('label' => 'Company', 'class' => 'text'));
        $email = new Zend_Form_Element_Text('email', array('required' => true, 'label' => 'E-mail *', 'class' => 'text'));
        $email->addValidator('NotEmpty', true)->addValidator('EmailAddress', true);
        $telephone = new Zend_Form_Element_Text('telephone', array('label' => 'Phone', 'class' => 'text'));
        $telephone->addValidator('NotEmpty', true);
        $message = new Zend_Form_Element_Textarea('message', array('required' => true, 'label' => 'Message *', 'class' => 'text', 'rows' => 8, 'cols' => 80));
        $message->addValidator('NotEmpty', true);
        $captcha = new Zend_Form_Element_Captcha('captcha', array('captcha' => array('captcha' => 'Dumb', 'wordLen' => 3, 'timeout' => 500)));
        $submit = new Zend_Form_Element_Submit('submit', array('label' => 'Send', 'class' => 'right'));
        $form->addElements(array($name, $email, $institution, $telephone, $message, $captcha, $submit));

        if ( $this->getRequest()->isPost() ) {
            $formData = $this->getRequest()->getPost();
            if ($form->isValid($formData)) {
                
                $mail = new Zend_Mail('UTF-8');

                $body = "Instytucja:\n" . $formData['institution'];
                $body .= "\n\nImię i nazwisko:\n" . $formData['name'];
                $body .= "\n\nE-mail:\n" . $formData['email'];
                $body .= "\n\nTelefon:\n" . $formData['telephone'];
                $body .= "\n\nWiadomość:\n" . $formData['message'];            

                $mail->setBodyText( $body );
                $mail->addTo('kontakt@dabster.eu', 'Dabster');
                $mail->addBcc('jakub.kulak+jkulaktest@gmail.com', 'Dabster secret');

                $mail->setSubject( 'Nowa wiadomość od: ' . $formData['name'] );
    
                try {
                    $mail->send();
                    $message = 'Message sent';
                } catch( Exception $e ) {
                    // echo $e->getMessage();
                    $message = 'There was problem sending message, please try again later, or give us a call!';
                }
                
                $this->view->message = $message;
            } else {
                $form->populate($formData);
            }
        }

        $this->view->form = $form;

        
    }
}